package com.bookstore.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@TableName("user_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderPO implements Serializable {

    private static final long serialVersionUID = 1l;

    @TableId(type = IdType.AUTO)
    private  Integer id = null;

    @TableField("user_name")
    private String userName;

    @TableField("book_id")
    private Integer bookId;

    @TableField("nums")
    private Integer nums;

    @TableField("signed")
    private int signed;

    @TableField("logistics")
    private String logistics;

    @TableField("create_time")
    private Date createTime;

    @TableField("is_critical")
    private String isCritical;
}
